def fun(n):
    ls = [int(c) for c in str(n)]
    return sum(ls)


count = 0
for n in range(100, 1000):
    if fun(n) == fun(n * 3) == fun(n * 4) == fun(n * 5) == fun(n * 6) == fun(n * 7):
        count += 1
        print(f"x={n}: x*3={n * 3}, x*4={n * 4}, x*5={n * 5}, x*6={n * 6}, x*7={n * 7}")
print(f"共有{count}个符合条件的三位数")